<?php 
$stdModules = '';
$devModules = '';

foreach($this->userModules as $k=>$v){

	if(strtolower($this->urlPath) === strtolower($k))
		$class='class="mSelected"';
	else 
		$class = '';
		
    if(!isset($this->modules[$k]['dev']) || !$this->modules[$k]['dev'])
        $stdModules .= '<li><a href="' . Request::url(array($this->adminPath,$k)) . '"><div '.$class.'>' . $this->modules[$k]['title'] .'</div></a></li>';
    else     
        $devModules .= '<li><a href="' . Request::url(array($this->adminPath,$k)) . '"><div '.$class.'>' . $this->modules[$k]['title'] .'</div></a></li>';
}
?>
<div id="mainMenu" class="x-hidden ">
	<ul class="mainMenu">
        <?php  echo $stdModules; ?>
	</ul>
</div>
<div id="systemMenu" class="x-hidden ">
	<ul class="mainMenu">
		<?php  echo $devModules; ?>
	</ul>
</div>